<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MCS Courier ID-Badge generator</title>
<meta name="description" content="MCS Courier ID-Badge generator">
<meta name="keywords" content="MCS Courier ID-Badge generator">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="Erik Schoepplenberg">
<meta name="generator" content="Web Page Maker">

<?php
	require_once('auth.php');
?>
<link rel="shortcut icon" href="http://rockedge.org/images/fishsm.gif" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="default.css" />
<style type="text/css">
a.style1:link{color:#000000;text-decoration: underline;}
a.style1:visited{color:#000000;text-decoration: underline;}
a.style1:hover{color:#FF0000;text-decoration: underline;}
a.style1:active{color:#800000;}
</style>

</head>
<body>
<div id="image2" style="position:absolute; overflow:hidden; left:0px; top:0px; width:383px; height:679px; z-index:0"><img src="images/paste14.jpg" alt="" title="" border=0 width=379 height=675 style="border:#000000 2px solid"></div>

<div id="iFrame1" style="position:absolute; left:84px; top:247px; z-index:1">
<iframe name="iFrame1" width="207" height="166" src="pr_photo2.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="iFrame2" style="position:absolute; left:18px; top:414px; z-index:2">
<iframe name="iFrame2" width="342" height="43" src="pr_name.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="iFrame3" style="position:absolute; left:18px; top:460px; z-index:3">
<iframe name="iFrame3" width="343" height="107" src="pr_sta.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="iFrame4" style="position:absolute; left:85px; top:207px; z-index:4">
<iframe name="iFrame4" width="206" height="39" src="pr_driverid.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="text6" style="position:absolute; overflow:hidden; left:68px; top:645px; width:277px; height:27px; z-index:5">
<div class="wpmd">
<div><font face="Tahoma" class="ws8">If lost please return to: P.O. Box 5617, Bayview Station Bridgeport, CT 06610 or call: 800-875-2323</font></div>
</div></div>

<div id="text10" style="position:absolute; overflow:hidden; left:144px; top:588px; width:203px; height:36px; z-index:6">
<div class="wpmd">
<div><font face="Tahoma" class="ws16">DOT#472822</font></div>
</div></div>

<div id="iFrame5" style="position:absolute; left:7px; top:78px; z-index:7">
<iframe name="iFrame5" width="370" height="35" src="pr_indie.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="iFrame6" style="position:absolute; left:7px; top:52px; z-index:8">
<iframe name="iFrame6" width="370" height="26" src="pr_indie_con.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="iFrame7" style="position:absolute; left:139px; top:612px; z-index:9">
<iframe name="iFrame7" width="179" height="34" src="pr_exp_date.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="hr1" style="position:absolute; overflow:hidden; left:92px; top:774px; width:768px; height:17px; z-index:10">
<hr size=2 width=768>
</div>

<div id="html1" style="position:absolute; overflow:hidden; left:429px; top:76px; width:355px; height:125px; z-index:11">
<form id='selectbadge' name='selectbadge' method='post' action='' target='iFrame'>
<select name='name' size='1'>";
<?php
include "connect.php";

$tablename = "saved_badge_id";

  $query="SELECT * FROM $tablename ORDER BY `id` DESC LIMIT 0, 100 ";
      $result = mysql_query($query,$con) or die("query:" . mysql_error());
	  $num = mysql_numrows($result);

	  $i=0;
while ($i < $num) {

	$id = mysql_result($result,$i,"id");
	$name= mysql_result($result,$i,"name");
	$driver_id = mysql_result($result,$i,"driver_id");
	$sta = mysql_result($result,$i,"sta");
	$photo = mysql_result($result,$i,"photo");
	$indie_con = mysql_result($result,$i,"indie_con");
	$status = mysql_result($result,$i,"status");
	$flag = mysql_result($result,$i,"flag");
	$exp_date = mysql_result($result,$i,"exp_date");

	  $value = $name;
        echo "<option value='$value'>".$value."</option>";

$i++;
}
?>
  <input type='button' name='Submit' value='Submit' onclick='javascript: return SubmitForm()' />
 </form></div>


<script type='text/javascript'>

function SubmitForm()
{

        
        document.forms['selectbadge'].action='pr_sta.php';
        document.forms['selectbadge'].target='iFrame3';
        document.forms['selectbadge'].submit();

        document.forms['selectbadge'].action='display-name.php';
        document.forms['selectbadge'].target='iFrame2';
        document.forms['selectbadge'].submit();

        document.forms['selectbadge'].action='pr_photo2.php';
        document.forms['selectbadge'].target='iFrame1';
        document.forms['selectbadge'].submit();
        
       

}
</script>
</body>
</html>
